-- local fuwei = fk.CreateSkill{
--     name = "wk_heg__fuwei",
-- }

-- Fk:loadTranslationTable{
--     ["wk_heg__fuwei"] = "扶危",
--     [":wk_heg__fuwei"] = "与你势力相同的角色：1.移除武将牌时，你可失去1点体力，令此次移除操作改为变更对应的武将牌；2.进入濒死状态时，你可令其武将牌上一个已发动过的限定技的发动次数+1，然后你弃置所有手牌并失去此技能。",

--     ["#wk_heg__fuwei-reset"] = "扶危：选择 %src 一个已发动过的限定技，令此技能视为未发动过",

--     ["$wk_heg__fuwei1"] = "改狐为马，若川中老骥，镇守南疆。",
--     ["$wk_heg__fuwei2"] = "更笃为忠，报先帝之恩，忠贞辅国。",
-- }

-- local H = require "packages.ol_hegemony.util"

-- fuwei:addEffect(H.GeneralRemoving,{
--     can_trigger = function (self, event, target, player, data)
--         return player:hasSkill(fuwei.name) and H.compareKingdomWith(player, target)
--     end,
--     on_use = function (self, event, target, player, data)
--         local room = player.room
--         room:loseHp(player, 1, fuwei.name)
--         H.transformGeneral(target, not data, 3, false)
--         return true
--     end,
-- })

-- fuwei:addEffect(fk.EnterDying,{
--     can_trigger = function (self, event, target, player, data)
--         return player:hasSkill(self) and H.compareKingdomWith(player, target)
--         and #table.filter(target.player_skills, function(s)
--            return s:hasTag(Skill.Limited) and target:usedSkillTimes(s.name, Player.HistoryGame) > 0
--         end) > 0
--     end,
--     on_use = function (self, event, target, player, data)
--         local room = player.room
--         local skillNames = table.filter(target.player_skills, function(s)
--            return s:hasTag(Skill.Limited) and target:usedSkillTimes(s.name, Player.HistoryGame) > 0
--         end)
--         if #skillNames == 0 then return false end
--         local skills = table.map(skillNames, function(s)
--             return s.name
--           end)
--         local skill = room:askToChoice(player, {choices = skills, skill_name = fuwei.name, prompt = "#wk_heg__fuwei-reset::"..target.id})
--         target:addSkillUseHistory(skill, -1)
--         player:throwAllCards("h")
--         room:handleAddLoseSkills(player, "-wk_heg__fuwei", nil)
--     end,
-- })

-- return fuwei